package hht.dragon.blog.model;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 文章实体类.
 * User: huang
 * Date: 18-6-22
 */
@Data
public class Article implements Serializable {

    private static final long serialVersionUID = -6839990350995864710L;

    private int articleId;
    private String articleTitle;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    private String articleContext;
    private int likeCounter;
    private int lookCounter;
    private List<Type> types = new ArrayList<>();

}
